import random

while True:
    input_str = input("请输入回车进行掷色子，输入stop退出程序")
    if input_str =="stop":
        break
    str1=input("please input da or xiao:")
    i = random.randint(1,6)
    print("Random number between 1 and 6 is %s" %(i))
    j = random.randint(1,6)
    print("Random number between 1 and 6 is %s" %(j))
    k = random.randint(1,6)
    print("Random number between 1 and 6 is %s" %(k))
    sum = i+ j + k
    if 3<sum<10 :
        print("xiao")
    elif  11<sum<18 :
        print("da")
    else:
        print("请重新掷色子")


